<template>
	<view class="content">
		<view class="remarks">
			<textarea v-model="remarks" placeholder="请填写备注" maxlength="200"/>
			<view class="u-font-24 u-text-right">
				{{remarks.length}}/200字
			</view>
		</view>
		<view class="btn" @click="doSave">完成</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				remarks:'',//备注
			};
		},
		onLoad() {
            
        },
		methods: {
            doSave(){
                if (!this.remarks) {
                    this.$toast('请填写备注')
                    return
                }
            	uni.$emit('remark', this.remarks)
                this.$backT()
            },
        }
	};
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 0 20rpx;
	}
	
	/* 备注 */
	.remarks{
		width: 100%;
		border-radius: 10rpx;
		border: 2rpx solid #e6e6e6;
		background-color: #fbfafa;
		padding: 30rpx;
		textarea{
			font-size: 26rpx;
			color: #000000;
			line-height: 40rpx;
		}
		.u-font-24{
			color: #959595;
		}
	}
	
	/* 按钮 */
	.btn{
		width: 686rpx;
		line-height: 93rpx;
		font-size: 34rpx;
		color: #FFFFFF;
		text-align: center;
		border-radius: 93rpx;
		background: #00734c;
		margin: 105rpx auto 0;
	}
</style>
